﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:uc="clr-namespace:EpicLeadManager.Views.Main" x:Class="EpicLeadManager.Views.Main.MainControl"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Resources/Icons/Icons.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>


    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1" />
            <ColumnDefinition Width="5*" />
            <ColumnDefinition />
            <ColumnDefinition Width="5*" />
            <ColumnDefinition Width="1" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="1" />
            <RowDefinition />
            <RowDefinition Height="1" />
        </Grid.RowDefinitions>

        <uc:PlayersListControl Grid.Column="1" Grid.Row="1" />
        <Button x:Name="SwipeRight_btn" Grid.Column="2" Margin="4.833,151.833,5,0" Grid.Row="1" Height="50"
                VerticalAlignment="Top" Click="SwipeRight_OnClick" Width="50">
            <Rectangle Width="30"
                       Height="30"
                       Fill="{Binding Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Button}}}">
                <Rectangle.OpacityMask>
                    <VisualBrush Stretch="Fill"
                                 Visual="{StaticResource appbar_people_right}" />
                </Rectangle.OpacityMask>
            </Rectangle>
        </Button>
        <uc:GroupsListControl Grid.Column="3" Grid.Row="1" />
    </Grid>
</UserControl>